package com.panshi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author zhy
 * @since 2020-07-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ZxComment对象", description = "")
public class ZxComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "资讯评论id")
    private Integer id;

    @ApiModelProperty(value = "评论作者")
    private Integer userId;

    @ApiModelProperty(value = "评论所属文章ID")
    private Integer aticleId;

    @ApiModelProperty(value = "评论等级")
    private Integer level;

    @ApiModelProperty(value = "评论父ID")
    private Integer parentId;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "点赞量,文字评论没有踩")
    private Integer raiseNum;

    @ApiModelProperty(value = "评论用户昵称")
    private String nickname;

    @ApiModelProperty(value = "评论回复")
    private List<ZxComment> reply;

    @ApiModelProperty(value = "用户头像地址")
    private String userPath;

    @ApiModelProperty(value = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    @ApiModelProperty(value = "删除;0-删除,1-未删除")
    private Integer deleted;

    @ApiModelProperty(value = "父级评论")
    private ZxComment zxComment;

    @ApiModelProperty(value = "评论回复数")
    private int  total ;

    @ApiModelProperty(value = "回复者昵称")
    private String replyNickname;

    @ApiModelProperty(value = "回复者头像")
    private String replyUserPath;


}
